<template>
  <div id="app">
    <!-- <router-view/> -->
    <router-view v-if="isRouterAlive" />
    <!-- <div class="spin-cont flex-center" v-show="spinning">
      <a-spin  :spinning="spinning" size='large'></a-spin>
    </div> -->
  </div>
</template>

<script>
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
      // spinning:false,
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function() {
        this.isRouterAlive = true;
      });
    }
  },
  created() {}
  // computed:{
  //   getServer(){
  //     return this.$store.state.serverPass;
  //   }
  // },
  // watch:{
  //   getServer:function(v,o){
  //     this.spinning=v;
  //   }
  // }
};
</script>

<style>
@import url("assets/common.css");
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}
/* .spin-cont{
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.603);
      z-index: 1000;
    } */
</style>
